<script>
    function random() {
        //最大的随机left是 800-10

        //最大的height是 400-10

        let x = Math.ceil(Math.random() * 790)
        let y = Math.ceil(Math.random() * 390)


        if (x % 17 === 0 && y % 17 === 0) {
            console.log(x,y);
        } else {
            random()
        }
    }

    console.log(random());
</script>